<template>
  <div class="amountItem">
    <span>{{ title }}</span>
    <div class="money">
      <span>{{ symbol }}</span>
      <nut-price
        :price="amount"
        size="normal"
        position="after"
        symbol="元"
      />
    </div>
  </div>
</template>

<script setup>
import { defineProps } from "vue";

// 属性
const props = defineProps({
  title: {
    type: String,
  },
  amount: {
    type: Number,
  },
  symbol: {
    type: String,
  },
});
</script>

<style lang="less" scoped>
.amountItem {
  display: flex;
  height: 40px;
  justify-content: space-between;
  align-items: center;
  .money {
    color: #fa2c19;
    span {
      margin-right: 5px;
      font-size: 14px;
    }
  }
}
</style>